projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5e127
)
(x_list_fonts): Make sure XFreeFont is called
author
Gerd Moellmann
<gerd@gnu.org>
Mon, 2 Jul 2001 09:21:08 +0000
(09:21 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Mon, 2 Jul 2001 09:21:08 +0000
(09:21 +0000)
with input blocked.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index c7b8535c4808443c3ea891552fd8cb802328e56a..72aa0826de921ac7fb035a8b2dd4bd2de3af22d1 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-13437,8
+13437,13
@@
x_list_fonts (f, pattern, size, maxnames)
}
}
}
+
if (!try_XLoadQueryFont)
- XFreeFontNames (names);
+ {
+ BLOCK_INPUT;
+ XFreeFontNames (names);
+ UNBLOCK_INPUT;
+ }
}
/* Now store the result in the cache. */
@@
-13490,7
+13495,9
@@
x_list_fonts (f, pattern, size, maxnames)
= (thisinfo->min_bounds.width == 0
? make_number (0)
: make_number (thisinfo->max_bounds.width));
+ BLOCK_INPUT;
XFreeFont (dpy, thisinfo);
+ UNBLOCK_INPUT;
}
else
/* For unknown reason, the previous call of XListFont had